package com.net.all.testing;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


class Employee1
{
	private int id;
	private String name;
	
	Employee1(int id, String name)
	{
		this.id = id;
		this.name = name;
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	
}



public class TestingMain {

	public static void main(String[] args)
	{
	
		Employee1 emp1 = new Employee1(5, "ddd");
		
		Map<Employee1, Integer> map = new HashMap<>();
		
		map.put(emp1, 55);
		map.put(new Employee1(3,"ff"),10);
		map.put(new Employee1(4,"ff"),15);
		map.put(new Employee1(5,"ff"),17);
		map.put(new Employee1(7,"ff"),40);
		
		
		
		Integer e = map.get("ddd");
		System.out.println(e);
		
		Employee1 emp2 = new Employee1(10, "ddiii");
		Employee1 emp3 = new Employee1(20, "dddkkk");
		
		List<Employee1> list = new ArrayList<>();
		list.add(emp1);
		list.add(emp2);
		list.add(emp3);
		
	
		
	}

}
